﻿#pragma once
#include "EditEntry.h"

class FlagsEditEntry : public EditEntry {
    Q_OBJECT
public:
    explicit FlagsEditEntry(QWidget *parent = nullptr);
    ~FlagsEditEntry();
    void setMetaEnum(const QMetaEnum &metaEnum);
    void setValue(int value);
    int value() const;
signals:
    void valueChanged(int value);

private:
    void onChidEntryValueChanged();
private:
    void initUi();
private:
    struct FlagsEditEntryPrivate;
    QScopedPointer<FlagsEditEntryPrivate> p;
};
